<template>
	<view class='qualifications'>
		<image  referrerPolicy='no-referrer' :src="getImgSrc(business_license + shuiyin2)" mode="widthFix" v-if="business_license"></image>
		<view class="" v-else>
			<image  referrerPolicy='no-referrer' :src="getImgSrc(item)" mode="widthFix" v-for="(item,index) in imgUrl" :key="index"></image>
		</view>
	</view>
</template>

<script>
	const http = require('../../utils/http');
	export default {
		data() {
			return {
				imgUrl:[],
				business_license:''
			};
		},
		onLoad(opt) {
			if(opt.company){
				uni.setNavigationBarTitle({
					title: opt.company
				});
				this.business_license = opt.business_license
			}else{
				uni.setNavigationBarTitle({
					title: '平台资质公示'
				});
				http.request('base/configData')
					.then((res) => {
						this.imgUrl =  res.data.platform_qualification_publici.map(item =>{
							item = item + this.shuiyin2
							return item
						})
						
						
					})
					.catch((res) => {
						uni.showToast({
							title: res.msg,
							icon: 'none'
						});
					});
			}
		},
	}
</script>

<style lang="scss">
	page {
		background-color: #F7F8FC;
	}
.qualifications{
	image{
		width: 100%;
		display: block;
		margin: 20rpx auto;
	}
}
</style>
